# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=caja-extensions
pkgver=1.24.1
pkgrel=0
pkgdesc="Set of extensions for Caja file manager"
url="https://github.com/mate-desktop/caja-extensions"
arch="all !s390x !mips !mips64" # mate-desktop
license="GPL-2.0-or-later"
depends="caja"
makedepends="glib-dev gtk+3.0-dev caja-dev dconf-dev
	mate-desktop-dev intltool"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://pub.mate-desktop.org/releases/${pkgver%.*}/caja-extensions-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--enable-sendto \
		--enable-wallpaper \
		--enable-open-terminal
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="b844a774271d81ac811b1aff1f04be4a65c6e38a683938dfb593f65297a6398fbfe4c8f6a51c649a1311fb5ca8134b4478860f51b1b3eaf9965a6b8776af2817  caja-extensions-1.24.1.tar.xz"
